package de.szut.dqi10.brailletouchscreenreader.braillechar;

/** The BrailleChar contains the following information:
 * - one bit for each point
 * - values according to this layout
 * ________
 * |1 |  8|
 * |2 | 16|
 * |4 | 32|
 * @author Marco Jedzig, Simon Grafenhorst, Felix Pusch
 */
public class BrailleChar {

	private Byte brailleChar = 0;
	
	public BrailleChar(Byte brailleChar) {
		this.brailleChar = brailleChar;
	}
	
	public Byte getBrailleChar() {
		return brailleChar;
	}
	
	public void setBrailleChar(Byte brailleChar) {
		this.brailleChar = brailleChar;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "BrailleChar [brailleChar = " + brailleChar 
				+ "; Binary = " + Integer.toBinaryString(getBrailleChar()) + "]";
	}
}